package com.woniu.new_orange.customization_model_zhang.service.impl;

import com.woniu.new_orange.customization_model_zhang.service.BulletTrainService;
import com.woniu.new_orange.customization_model_zhang.vo.AirTicketVo;
import com.woniu.new_orange.customization_model_zhang.vo.BulletTrainVo;
import com.woniu.new_orange.entity.BulletTrain;
import com.woniu.new_orange.mapper.BulletTrainMapper;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Program: new_orange->BulletTrainServiceImpl
 * @Description:
 * @Author: PC
 * @Date: 2023-02-07 20:27
 * @Version： 1.0
 **/
@Service
public class BulletTrainServiceImpl implements BulletTrainService {
    @Resource
    private BulletTrainMapper bulletTrainMapper;

    @Override
    public int insertSelective(BulletTrain train) {
        return bulletTrainMapper.insertSelective(train);

    }

    @Override
    public List<BulletTrainVo> selectAll(Integer airTicketBy1) {
        return bulletTrainMapper.selectAll(airTicketBy1);
    }
}